home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / os / sprite.X11R3 / osinit.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-26  |  1.5 KB  |  59 lines

  1. /*-
  2.  * osinit.c --
  3.  *    Initialization!
  4.  *
  5.  * Copyright (c) 1987 by the Regents of the University of California
  6.  *
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  *
  16.  */
  17. #ifndef lint
  18. static char rcsid[] =
  19. "$Header: /mic/X11R3/src/cmds/Xsp/os/sprite/RCS/osinit.c,v 1.8 89/10/25 18:06:49 tve Exp $ SPRITE (Berkeley)";
  20. #endif lint
  21.  
  22. #include    "spriteos.h"
  23. #include    "opaque.h"
  24. #include    <dbm.h>
  25. #include    <bit.h>
  26.  
  27. /*-
  28.  *-----------------------------------------------------------------------
  29.  * OsInit --
  30.  *    Initialize this module. Not much to do...
  31.  *
  32.  * Results:
  33.  *
  34.  * Side Effects:
  35.  *
  36.  *-----------------------------------------------------------------------
  37.  */
  38. OsInit()
  39. {
  40.     static havergb = 0;
  41.  
  42.     GrabDone = FALSE;
  43.     List_Init(&allStreams);
  44.     if (ClientsWithInputMask != (int *)0) {
  45.     /*
  46.      * On Reset, all the clients and devices should have gone away,
  47.      * but that could still leave something bogus in the
  48.      * ClientsWithInputMask...
  49.      */
  50.     Bit_Zero (NumActiveStreams, ClientsWithInputMask);
  51.     }
  52.  
  53.     if(!havergb)
  54.         if(dbminit (rgbPath) == 0)
  55.         havergb = 1;
  56.         else
  57.         ErrorF( "Couldn't open RGB_DB '%s'\n", rgbPath );
  58. }
  59.